<script>
export default {
  props: {
    title: {
      type: String,
      default: '查看富文本'
    },
    content: {
      type: String,
      default: '内容'
    }
  },
  data() {
    return {
      dialogVisible: false

    }
  },
  methods: {
    open(content) {
      this.content = content
      this.dialogVisible = true
    },
    close() {
      this.dialogVisible = false
    }
  }
}
</script>

<template>
  <div class="rich-text">
    <el-dialog :title="title" :visible.sync="dialogVisible" width="80%">
      <div class="rich-text">
        <div v-html="content" />
      </div>
    </el-dialog>
  </div>
</template>

<style scoped lang="scss">

</style>
